#include "Pixie.h"
#include "Opal.h"
#include "message.h"
configuration OpalC
{ 
} 
 
implementation
{
  components new TimerStage(1024) as TimerStage;
  components new CountStage(PIXIE_PRIORITY_NORM) as Counter;
  components new SendStage(PIXIE_PRIORITY_NORM, TOS_BCAST_ADDR, OpalMsg, AM_OPAL_MSG);
  components new OpalSendStage(PIXIE_PRIORITY_NORM) as OpalSend;
  components new ReceiveStage(OpalMsg, AM_OPAL_MSG);
  components new OpalRecieveStage(PIXIE_PRIORITY_NORM) as OpalRecieve;
  components new LEDStage(PIXIE_PRIORITY_NORM) as LEDs;
  

  /* Tx */
  TimerStage.Output -> Counter.Input;
  Counter.Output -> OpalSend.Input;
  OpalSend.Output -> SendStage.Input;
  /* Rx */
  ReceiveStage.Output -> OpalRecieve.Input;
  OpalRecieve.Output -> LEDs.Input;
  
}
